package ko.beginner;

import java.util.List;

import android.app.Activity;
import android.app.ActivityManager;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.graphics.drawable.Drawable;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.SystemClock;
import android.util.Log;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Button;
import android.widget.Toast;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import com.google.android.maps.MyLocationOverlay;
import com.google.android.maps.OverlayItem;

/*
 * 2010 06 08 Develop Start KYS
 */
public class main extends MapActivity {
	
	//Debug Tag
	public static final String DEBUG_TAG="DEBUG"; 
	
	//Map Class
	private MapView map = null; //Map Handler
	
 
	
	//Button Class
	private Button _btnSend = null; //Send Button
	private Button _btnUser = null; //User Button
	
	//Overlay
	private MyLocationOverlay myLocOverlay = null;
	
	//Map Pointer ( Defalut : Evriware Company )
	static double latitude = 37.52688133956392;
	static double longitude = 126.93348973989486;

	//radius (Default)
	static float radius = 50000;                      
	//language
	static String lang = "ko";
	
	//Server IP and PORT ( Default )
	static String  VMT_IP = "192.168.10.141";
	//static String VMT_IP = "211.187.234.69";
	//static int VMT_PORT = 20020;
	static int VMT_PORT = 6798;
	
	//GPS Manager
	private LocationManager _locM; 
	private LocationListener _locL; 
	
	//Define Progress Bar
	private final int DIALOG_PROGRESS = 1;
	
	//Create ProgressDialog
	private ProgressDialog pDialog;
	

	
	//FindTweetService
	private ServiceConnection mConn = new ServiceConnection()
	{

		@Override
		public void onServiceConnected(ComponentName name, IBinder service) {
			// TODO Auto-generated method stub
	
		}

		@Override
		public void onServiceDisconnected(ComponentName name) {
			// TODO Auto-generated method stub

		}
		
	};
		
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //Main layout Set
        setContentView(R.layout.main);
        
    
        
    }
    
  
	/*
	 * Menu Selection Item 
	 */
	public boolean onOptionsItemSelected(MenuItem item){
		try{
			switch(item.getItemId()){
				case R.id.set_param: //setting Menu
				
					
				case R.id.end_service: //Exit Program
				
					
			}
		}catch(Exception e){
			Log.e("Error", e.getMessage());
		}
		return super.onOptionsItemSelected(item);
	}


	@Override
	protected boolean isRouteDisplayed() {
		// TODO Auto-generated method stub
		return false;
	}
}//end of Main Class

 